
function openLoginPage(checkTime){
    var map = new LinkedHashMap();
    map.put("method", "openLoginPage");
    map.put("checkTime", Integer.parseInt(checkTime));
    return sendAndReceive(map);
}

function inputUPAndGetOperationResult(username, password){
    var map = new LinkedHashMap();
    map.put("method", "inputUPAndGetOperationResult");
    map.put("username", username);
    map.put("password", password);
    return sendAndReceive(map);
}

function checkLoginErrorMsg(){
    var map = new LinkedHashMap();
    map.put("method", "checkLoginErrorMsg");
    return sendAndReceive(map);
}

function whichPage(){
    var map = new LinkedHashMap();
    map.put("method", "checkWhichPageAfterClickLogin");
    return sendAndReceive(map);

}
function firstLogin(){
    var map = new LinkedHashMap();
    map.put("method", "firstLogin");
    return sendAndReceive(map);

}
function chooseLoginType(id) {
    var map = new LinkedHashMap();
    map.put("method", "chooseLoginType");
    map.put("id",id);
    return sendAndReceive(map);
}
function GetCardByClickMenu() {
    var map = new LinkedHashMap();
    map.put("method", "GetCardByClickMenu");
    return sendAndReceive(map);
}
function getNameOnCard() {
    var map = new LinkedHashMap();
    map.put("method", "getNameOnCard");
    return sendAndReceive(map);
}
function getCardNum() {
    var map = new LinkedHashMap();
    map.put("method", "getCardNum");
    return sendAndReceive(map);
}

function clickMune() {
    var map = new LinkedHashMap();
    map.put("method", "clickMune");
    return sendAndReceive(map);
}
function click() {
    var map = new LinkedHashMap();
    map.put("method", "click");
    return sendAndReceive(map);
}
function selectAccount (){
    var map = new LinkedHashMap();
    map.put("method", "selectAccount");
    return sendAndReceive(map);
}

function checkIfInput(id,value){
    var map = new LinkedHashMap();
    map.put("method", "checkIfInput");
    map.put("id", id);
    map.put("value", value);
    return Boolean.valueOf(sendAndReceive(map));
}

function sendMessage(){
    var map = new LinkedHashMap();
    map.put("method", "sendSms");
    return sendAndReceive(map);
}

function clickEnsureButton(){
    var map = new LinkedHashMap();
    map.put("method", "clickEnsureButton");
    return sendAndReceive(map);
}


function clickMenu(){
    var map = new LinkedHashMap();
    map.put("method", "clickMenu");
    return sendAndReceive(map);
}

function setMobile(mobile){
    var map = new LinkedHashMap();
    map.put("method", "setMobile");
    map.put("mobile",mobile);
    return sendAndReceive(map);
}

function clickImgAndGetImgPath(){
    var map = new LinkedHashMap();
    map.put("method", "clickImgAndGetImgPath");
    return sendAndReceive(map);
}

function setSizeAndShow() {
    var map = new LinkedHashMap();
    map.put("method", "setSizeAndShow");
    return sendAndReceive(map);
}

function inputImgAndClickLoginButton(captcha){
    var map = new LinkedHashMap();
    map.put("method", "inputImgAndClickLoginButton");
    map.put("captcha", captcha);
    return sendAndReceive(map);
}

function getImgPath(){
    var map = new LinkedHashMap();
    map.put("method", "getImgPath");
    return sendAndReceive(map);
}

function ajaxGetAndSetIframeHtml(url) {
    var map = new LinkedHashMap();
    map.put("method", "ajaxGetAndSetIframeHtml");
    map.put("url", url);
    return sendAndReceive(map);
}


function download(url, data){
    var map = new LinkedHashMap();
    map.put("method", "download");
    map.put("url", url);
    map.put("data", data);
    return sendAndReceive(map);
}

function exitLogin(){
    var map = new LinkedHashMap();
    map.put("method", "exitLogin");
    return sendAndReceive(map);
}
function getCardData(){
    var map = new LinkedHashMap();
    map.put("method", "getCardData");
    return sendAndReceive(map);
}


function checkControlAvailable() {
    var map = new LinkedHashMap();
    map.put("method", "checkControlAvailable");
    return sendAndReceive(map);
}
function get_html2() {
    var map = new LinkedHashMap();
    map.put("method", "get_html2");
    return sendAndReceive(map);
}
function getLoginCookie() {
    var map = new LinkedHashMap();
    map.put("method", "getLoginCookie");
    return sendAndReceive(map);
}
function getEmpSID() {
    var map = new LinkedHashMap();
    map.put("method", "getEmpSID");
    return sendAndReceive(map);
}

function getRandomID() {
    var map = new LinkedHashMap();
    map.put("method", "getRandomID");
    return sendAndReceive(map);
}
function getCardType() {
    var map = new LinkedHashMap();
    map.put("method", "getCardType");
    return sendAndReceive(map);
}
function get_picture_gs () {
    var map = new LinkedHashMap();
    map.put("method", "get_picture_gs");
    return sendAndReceive(map);
}
function getCustNo () {
    var map = new LinkedHashMap();
    map.put("method", "getCustNo");
    return sendAndReceive(map);
}
function getWindowId () {
    var map = new LinkedHashMap();
    map.put("method", "getWindowId");
    return sendAndReceive(map);
}
function getMcvId () {
    var map = new LinkedHashMap();
    map.put("method", "getMcvId");
    return sendAndReceive(map);
}
/**
 * 截取当前屏幕的状态
 *
 * @return
 */
function getScreenShots() {
    var map = new LinkedHashMap();
    map.put("method", "getScreenShots");
    return sendAndReceive(map);
}
